import request from '@/utils/request'

export function getModulars(query) {
  return request({
    url: '/program/modular/getList',
    method: 'post',
    data: query
  })
}
export function getModularByCompany(data) {
  return request({
    url: '/program/modular/getCompanyList',
    method: 'post',
    data:data
  })
}
export function getModularsByUsable(data) {
  return request({
    url: '/program/modular/getUsableList',
    method: 'post',
    data:data
  })
}

export function getModular(id) {
  return request({
    url: '/program/modular/getDetail',
    method: 'post',
    data: id
  })
}

export function saveModular(id) {
  return request({
    url: '/program/modular/save',
    method: 'post',
    data: id
  })
}

export function removeModularByID(id) {
  return request({
    url: '/program/modular/delete',
    method: 'post',
    data: id
  })
}

export function changeModularStatusByID(id) {
  return request({
    url: '/program/modular/change-status',
    method: 'post',
    data: id
  })
}

